export const propList = [
  {
    label: "图片",
    slotName: "img",
  },
  {
    label: "状态",
    slotName: "status",
  },
  {
    label: "链接",
    prop: "link",
  },
  {
    label: "创建时间",
    prop: "created_at",
  },
  {
    label: "更新时间",
    prop: "updated_at",
  },
  {
    label: "操作",
    slotName: "op",
    showOverflowTooltip: false,
    // width: "150px",
  },
];
// 表单默认数据
export const defaultFormData = {
  status: 1,
};
export const dialogConfig = {
  title: "轮播图",
  formConfig: {
    labelWidth: "100px",
    colLayout: { span: 24 },
    formData: defaultFormData,
    formItems: [
      {
        type: "custom",
        label: "图片",
        prop: "path",
      },
      {
        label: "状态",
        prop: "status",
        type: "radio",
        radioList: [
          {
            label: "启用",
            value: 1,
          },
          {
            label: "禁用",
            value: 2,
          },
        ],
      },
      {
        label: "链接",
        prop: "link",
        type: "input",
        placeholder: "请输入链接地址",
      },
    ],
    formDataRules: {
      path: [{ required: true, message: "请选择上传图片", trigger: "change" }],
      status: [{ required: true, message: "请选择状态", trigger: "change" }],
      //   link: [{ required: true, message: "请输入链接地址", trigger: "blur" }],
    },
  },
};
